package com.module.admin.app.service;

import java.util.List;
import java.util.Map;

import com.module.admin.app.pojo.AppApiTestDtl;
import com.module.admin.sys.pojo.SysUser;
import com.system.comm.model.Page;
import com.system.handle.model.ResponseFrame;

/**
 * app_api_test_dtl的Service
 * @author admin
 * @date 2020-12-28 16:57:41
 * @version V1.0.0
 */
public interface AppApiTestDtlService {
	
	/**
	 * 保存或修改
	 * @param appApiTestDtl
	 * @return
	 */
	public ResponseFrame saveOrUpdate(AppApiTestDtl appApiTestDtl);
	
	/**
	 * 根据aatdId获取对象
	 * @param aatdId
	 * @return
	 */
	public AppApiTestDtl get(String aatdId);

	/**
	 * 分页获取对象
	 * @param appApiTestDtl
	 * @return
	 */
	public Page<AppApiTestDtl> pageQuery(AppApiTestDtl appApiTestDtl);
	
	/**
	 * 根据aatdId删除对象
	 * @param aatdId
	 * @return
	 */
	public ResponseFrame delete(String aatdId);

	public List<AppApiTestDtl> findByAatId(String aatId);
	/**
	 * 测试接口
	 * @param aatdId
	 * @param user 
	 * @return
	 */
	public ResponseFrame test(String aatdId, String batchNo, SysUser user);

	public void updateStatus(String aatdId, Integer status, String aatlId);

	public ResponseFrame testAll(String aatId, SysUser user);
	/**
	 * 查看测试报告
	 * @param aatId
	 * @return
	 */
	public Map<String, Object> lookReport(String aatId);

}